home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / earcd / grafica / artpro_install / install < prev    next >
Text File  |  1997-11-10  |  6KB  |  313 lines

  1. ; ArtPRO installations Script
  2. ; © 1997 Defect Softworks All rights reserved.
  3. ; May only be distributed within the ArtPRO package
  4. ; Written by Frank Pagels /DFT
  5. ; Date: 10/Nov/97
  6.  
  7. (set falsekickmsg    "You need at least OS 2.04 to run ArtPRO!")    ;!!!
  8.  
  9. (set OS_VER (/ (getversion) 65536) )
  10.  
  11. (if(< OS_VER 37)
  12.   (abort falsekickmsg)
  13. )
  14.  
  15. (set cpu (database "cpu"))    ;check CPU Type
  16.  
  17. (if (or (= cpu 68020) (= cpu 68030)) (set #cpu 0))
  18. (if (= cpu 68040) (set #cpu 1))
  19. (if (> (exists ("libs:68060.library")) 0) (set #cpu 2) )
  20.  
  21. (set #doclang 0)
  22. ;(if (= @language "deutsch") (set #doclang 1))
  23.  
  24. (set progdir1
  25.  (askdir (prompt "In wich drawer should ArtPRO be installed?\n (a drawer will be created)")
  26.    (help @askdir-help)
  27.    (DEFAULT @default-dest)))
  28.  
  29. (    (makedir (tackon progdir1 "ArtPRO")) 
  30.     (copyfiles (source "Icons/ArtPRO.info")
  31.     (dest progdir1))
  32.  
  33.     (set progdir (tackon progdir1 "ArtPRO"))
  34. )
  35. ;--------------------------------------------------------------------------
  36. (
  37.     (copyfiles (source "ArtPRO")
  38.     (dest progdir))
  39.  
  40.     (copyfiles (source "installdata/ArtPRO.info")    ;!!!
  41.     (dest progdir))
  42.  
  43. )
  44.  
  45. ;------ Install Loader -------
  46. (
  47.     (makedir (tackon progdir "ALoaders"))
  48.     (copyfiles (source "Aloaders")
  49.     (dest (tackon progdir "ALoaders"))
  50.     (all))
  51. )
  52.  
  53. ;------ Install Saver --------
  54. (
  55.     (makedir (tackon progdir "ASavers"))
  56.     (copyfiles (source "ASavers")
  57.            (dest (tackon progdir "ASavers"))
  58.            (all)
  59.     )
  60.  
  61. )
  62.  
  63. ;------ Install Operator --------
  64. (
  65.     (makedir (tackon progdir "AOperators"))
  66.     (copyfiles (source "AOperators")
  67.            (dest (tackon progdir "AOperators"))
  68.            (all)
  69.     )
  70.  
  71. )
  72.  
  73. ;----- Copy needed Librarys 
  74.  
  75.     (copylib
  76.     (prompt "Copy ReqTools.library")
  77.     (help @copylib-help)
  78.     (source "libs/reqtools.library")
  79.     (dest "Libs:")
  80.     (confirm)
  81.     )
  82.  
  83.     
  84.     (Set #WhatLib
  85.     (cat  "Which version of the render.library do you want to install now ?"))
  86.  
  87.     (set InstallLib
  88.         (askchoice
  89.             (prompt #WhatLib)
  90.             (help @askoptions-help)
  91.             (choices
  92.                 "020"        ;Bit 0
  93.                 "040"        ;Bit 1
  94.                 "060")        ;Bit 2
  95.             (default #cpu)
  96.         )
  97.     )
  98.    
  99. (
  100.     (if (= InstallLib 0)
  101.  
  102.        (copylib 
  103.            (prompt "Copy Render.library")
  104.         (help @copylib-help)
  105.              (source "libs/render.library_68020")
  106.         (dest "Libs:")
  107.         (newname "render.library")
  108.         (confirm)
  109.        )
  110.     )
  111.  
  112.  
  113.  
  114.     (if (= InstallLib 1)
  115.  
  116.        (copylib 
  117.            (prompt "Copy Render.library")
  118.         (help @copylib-help)
  119.              (source "libs/render.library_68040")
  120.         (dest "Libs:")
  121.         (newname "render.library")
  122.         (confirm)
  123.        )
  124.     )
  125.          
  126.  
  127.  
  128.     (if (= InstallLib 2)
  129.  
  130.        (copylib 
  131.            (prompt "Copy Render.library")
  132.         (help @copylib-help)
  133.              (source "libs/render.library_68060")
  134.         (dest "Libs:")
  135.         (newname "render.library")
  136.         (confirm)
  137.        )
  138.     )
  139.     
  140. )
  141.  
  142. ;----------------------------------------------------------------
  143.     (Set #WhatLib
  144.     (cat  "Which version of the guigfx.library do you want to install now ?"))
  145.  
  146.     (set InstallLib
  147.         (askchoice
  148.             (prompt #WhatLib)
  149.             (help @askoptions-help)
  150.             (choices
  151.                 "020"        ;Bit 0
  152.                 "040"        ;Bit 1
  153.                 "060"        ;Bit 2
  154.                 "020+FPU")    ;Bit 3
  155.             (default #cpu)
  156.         )
  157.     )
  158.    
  159. (
  160.     (if (= InstallLib 0)
  161.  
  162.        (copylib 
  163.            (prompt "Copy Guigfx.library")
  164.         (help @copylib-help)
  165.              (source "libs/guigfx.library")
  166.         (dest "Libs:")
  167.         (newname "guigfx.library")
  168.         (confirm)
  169.        )
  170.     )
  171.  
  172.  
  173.     (if (= InstallLib 1)
  174.  
  175.        (copylib 
  176.            (prompt "Copy Guigfx.library")
  177.         (help @copylib-help)
  178.              (source "libs/guigfx.library_68040")
  179.         (dest "Libs:")
  180.         (newname "guigfx.library")
  181.         (confirm)
  182.        )
  183.     )
  184.          
  185.  
  186.     (if (= InstallLib 2)
  187.  
  188.        (copylib 
  189.            (prompt "Copy Guigfx.library")
  190.         (help @copylib-help)
  191.              (source "libs/guigfx.library_68060")
  192.         (dest "Libs:")
  193.         (newname "guigfx.library")
  194.         (confirm)
  195.        )
  196.     )
  197.  
  198.     (if (= InstallLib 3)
  199.  
  200.        (copylib 
  201.            (prompt "Copy Guigfx.library")
  202.         (help @copylib-help)
  203.              (source "libs/guigfx.library_FPU")
  204.         (dest "Libs:")
  205.         (newname "guigfx.library")
  206.         (confirm)
  207.        )
  208.     )
  209.     
  210. )
  211.  
  212. ;----- copy Dokumentation ------
  213.  
  214. (
  215.     (Set #Whatdoc
  216.     (cat  "What ArtPRO documentation would you like to install?\n"))
  217.  
  218.     (set Installdoc
  219.         (askchoice
  220.             (prompt #Whatdoc)
  221.             (help @askoptions-help)
  222.             (choices
  223.                 "English")        ;Bit 0
  224.             ;    "German")        ;Bit 1
  225.             (default #doclang)
  226.         )
  227.     )
  228.    
  229.     (set docdir
  230.         (askdir (prompt "Select a drawer for the Guide:")
  231.         (help @askdir-help)
  232.         (DEFAULT progdir)))
  233.  
  234.  
  235.     (if (= Installdoc 0)
  236.         (
  237.             (copyfiles (source "docs/english/ArtPRO.guide")        ;!!!
  238.                    (dest docdir))
  239.  
  240.             (copyfiles (source "installdata/ArtPRO.guide.info")    ;!!!
  241.                    (dest docdir))
  242.         )
  243.     )
  244.  
  245. ;    (if (= Installdoc 1)
  246. ;
  247. ;       (copyfiles (source "docs/deutsch/ArtPRO.guide")
  248. ;        (dest docdir))
  249. ;
  250. ;       (copyfiles (source "docs/deutsch/ArtPRO.guide.info")
  251. ;        (dest docdir))
  252. ;
  253. ;    )
  254.  
  255.  
  256. )
  257.  
  258. ;---- Kopiere Icons ----
  259.  
  260. (
  261.     (makedir (tackon progdir "Icons"))
  262.     (copyfiles (source "Icons")
  263.         (dest (tackon progdir "Icons"))
  264.         (all))
  265.     (copyfiles (source "installdata/Icons.info")    ;!!!
  266.         (dest progdir))
  267.  
  268. )
  269.  
  270.  
  271. (
  272.   (set appdir
  273.   (askdir (prompt "In wich drawer should the external AppIcon be installed?")
  274.    (help @askdir-help)
  275.    (DEFAULT progdir)))
  276.  
  277.      (copyfiles (source "Installdata/AppIcon.info")
  278.         (dest appdir)
  279.     )
  280.         (Tooltype (dest (tackon progdir "ArtPRO"))
  281.         (Settooltype "APPICON" (tackon appdir "AppIcon"))
  282.     )
  283. )
  284.  
  285. (set @default-dest progdir)
  286.  
  287.  
  288. (copyfiles (source "Orderform.doc")
  289.     (dest progdir)
  290. )
  291.  
  292. (copyfiles (source "Orderform.dok")
  293.     (dest progdir)
  294. )
  295.  
  296. (makedir "ENV:ArtPRO")
  297. (makedir "ENVARC:ArtPRO")
  298.  
  299.  
  300. (Set #Whatdoc
  301.     ( cat "Now installing the Jpeg Codec by\n Cristoph Feck. It is needed for\n the Jpeg loader/saver.\n")
  302. )
  303. (Message   #whatdoc)
  304.                 
  305. (set @execute-dir "jpeg-cdc_dist")
  306. (run (safe) "sys:utilities/installer SCRIPT install APPNAME Jpeg_Codec")
  307.  
  308. (exit "Note: ArtPRO is Shareware!\n\n"
  309.       "Render.library and Guigfx.library\n"
  310.       "are (C) by Timm Müller!\n\n"
  311.       "Enjoy this!") 
  312.